package other;

public class selectnums {
    //定11个数据元素的有序表：(2，3，10，15，20，25，28，29，30，35，40)，若查找给定值为20的元素
    public static void main(String[] args) {
        //int 类型直接用sort
//        int [] nums ={2,3,10,15,20,25,28,29,30,35,40};
//        Arrays.sort(nums);
//        System.out.println(Arrays.toString(nums));
        //String 类型需要用到冒泡排序
        String [] arr ={"9","4","6","2","55","23","35","42","78","21","14"};
        for (int i = 0; i < arr.length; i++) {
            if(arr[i].charAt(i)>arr[i+1].charAt(i+1)){

            }

        }

//        for (int i = 0; i < nums.length; i++) {
//            if(nums[i]=="20"){
//                System.out.println("找到定值为20的元素拉,数组nums中第"+(i+1)+"位");
//            }
//        }
        String [] arrays ={"we","","","",""};
    }
}
